package com.craftcomputing.client.SearchResult.Label;

import com.craftcomputing.client.Entry.ThemeEntry;
import com.craftcomputing.client.Entry.EntryPanel;
import com.google.gwt.json.client.JSONValue;

public class ThemeSearchResultLabel extends SearchResultLabel {

	public ThemeSearchResultLabel() {}
	public ThemeSearchResultLabel(JSONValue json) {
		super(json);
	}
	public EntryPanel makeEntryPanel(){
		return new ThemeEntry();
	}
	protected void fillData(JSONValue json){
		name = json.isObject().get("name").toString().replaceAll("\"", "");
    	imageLoc = json.isObject().get("image").toString().replaceAll("\"", "");
	}
}
